package org.jeecg.modules.storage.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.storage.entity.BussStorage;
import org.jeecg.modules.storage.vo.BussStoragePage;
import org.jeecg.modules.storage.vo.StoragePage;

import java.io.Serializable;
import java.util.Collection;

/**
 * @Description: 入库单
 * @Author: jeecg-boot
 * @Date:   2024-06-20
 * @Version: V1.0
 */
public interface IBussStorageService extends IService<BussStorage> {

	/**
	 * 添加一对多
	 *
	 * @param bussStorage
	 * @param bussStorageDetailList
	 */
	public void saveMain(BussStoragePage storagePage) ;
	
	/**
	 * 修改一对多
	 *
   * @param bussStorage
   * @param bussStorageDetailList
	 */
	public void updateMain( BussStoragePage bussStoragePage);
	
	/**
	 * 删除一对多
	 *
	 * @param id
	 */
	public void delMain (String id);
	
	/**
	 * 批量删除一对多
	 *
	 * @param idList
	 */
	public void delBatchMain (Collection<? extends Serializable> idList);


	public IPage<StoragePage> pagelist(Page<StoragePage> page, QueryWrapper<StoragePage> wrapper);

	public IPage<StoragePage> queryList(Page<StoragePage> page, QueryWrapper<StoragePage> wrapper);
	
}
